package jp.co.sn.mml.pojo.tmReportItem;


public class TmReportItemId implements java.io.Serializable { 

	//帳票区分
	private String rptKbnCd;
	//出力項目番号
	private Long seqNo;

	/** default constructor */
	public TmReportItemId(){

	}

	/** full constructor */
	public TmReportItemId(String rptKbnCd,Long seqNo){
		this.rptKbnCd = rptKbnCd;
		this.seqNo = seqNo;
	}

	//Property accessors
	public String getRptKbnCd(){
		return this.rptKbnCd;
	}

	public void setRptKbnCd(String rptKbnCd){
		this.rptKbnCd=rptKbnCd;
	}

	public Long getSeqNo(){
		return this.seqNo;
	}

	public void setSeqNo(Long seqNo){
		this.seqNo=seqNo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmReportItemId))
			return false;

		TmReportItemId castOther = (TmReportItemId) other;

		return ((this.getRptKbnCd() ==  castOther.getRptKbnCd())
				||(this.getRptKbnCd()!=null && castOther.getRptKbnCd() !=null 
					&& castOther.getRptKbnCd() !=null 
					&& this.getRptKbnCd().equals(castOther.getRptKbnCd())))
			&& ((this.getSeqNo() ==  castOther.getSeqNo())
				||(this.getSeqNo()!=null && castOther.getSeqNo() !=null 
					&& castOther.getSeqNo() !=null 
					&& this.getSeqNo().equals(castOther.getSeqNo())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getRptKbnCd() == null ? 0 : this.getRptKbnCd().hashCode());
		result = 37 * result
				+ (getSeqNo() == null ? 0 : this.getSeqNo().hashCode());
		return result;
	}

}